<template>
    <div>
        <h1>用户组件</h1>
		<p>用户变</p>
		<!-- <button @click="changeName">修改我的姓名</button> -->
		<!-- <p>姓名是：{{ name }}</p> -->
        <input type="text" v-model="value"> 
		<button @click="submit">提交</button>
    </div>
    
</template>
<script>
export default {
    data(){
        return {
            value:''
        }
    },
    methods:{
        submit(){
            this.$emit('submit',this.value)
        }
    }
}
</script>
